package com.project.bean;

import java.util.List;

/**
 * 用户角色表
 */
public class RoleBean {
    /**角色id*/
    private int id;
    /**角色名称*/
    private String name;
    /**角色的 权限集合*/
    private List<RootBean> roleRoot;

    public RoleBean() {
    }

    public RoleBean(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<RootBean> getRoleRoot() {
        return roleRoot;
    }

    public void setRoleRoot(List<RootBean> roleRoot) {
        this.roleRoot = roleRoot;
    }

    @Override
    public String toString() {
        return "RoleBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", roleRoot=" + roleRoot +
                '}';
    }
}
